#pragma once
#include <iostream>
#include <string.h>
#include <ctime>
using namespace std;

string GetCurTime()
{
    time_t t = time(nullptr);
    struct tm* curr = ::localtime(&t);

    char currtime[32];
    snprintf(currtime,sizeof(currtime),"%d-%d-%d %d:%d:%d",
        curr->tm_year + 1900,
        curr->tm_mon + 1,
        curr->tm_mday,
        curr->tm_hour,
        curr->tm_min,
        curr->tm_sec);
        return currtime;
};
struct Date
{
    char _status[32];
    char _lasttime[64];
    char _image[1024];
};
